import request from "@/utils/request";

export function postList(){
    return request({
      url:'/post/list',
      method:'get'
    })
}

export function postAdd(data){
    return request({
        url:'/post/add',
        method:'post',
        data
    })
}

export function postDelete(data){
    return request({
        url:'/post/delete',
        method:'post',
        data
    })
}

export function postEdit(data){
    return request({
        url:'/post/edit',
        method:'post',
        data
    })
}

export function postSelect(data){
    return request({
        url:'/post/select',
        method:'post',
        data
    })
}